<?php
$dir = dir("ipa");
$i = 0;
$o = 0;
while (($file = $dir->read()) !== false){
	$i++;
	if($i > 2){
		$o++;
		$files[$o] = $file;
	}
}
$dir->close();
print_r(json_encode($files));
?> 